﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mbs.Net
{
    public interface ICoding
    {
        byte[] EncodePacket(IPacket packet);

        IPacket DecodePacket(byte[] stream);
    }

    public interface ICoding<TPacket>
        where TPacket : IPacket
    {
        byte[] EncodePacket(TPacket packet);

        TPacket DecodePacket(byte[] stream);
    }
}
